<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="__PUBLIC__/Js/home/jquery-1.11.3.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/layer/layer.js"></script>
    <title>Title</title>
</head>
<body>
<form method="post" action="__MODULE__/Culture/messageAction" enctype="multipart/form-data"
>写下点儿什么
    <textarea rows="20" cols="110" name="content"  id="text" value="">{$arr['content']}</textarea>
    <tr>
        <td>上传图片:</td>
    </tr>
    <tr>
        <td><input type="file" name="pic1"/></td>
        <td><input type="file" name="pic2"/></td>
        <td><input type="file" name="pic3"/></td>
        <td><input type="file" name="pic4"/></td>
        <td><input type="hidden" name="id" value="{$arr.id}"/></td>
    </tr>
    <button type="button" id="sub">就写这么多吧</button>

</form>
<script type="text/javascript">
    $("#sub").click(function(){
        var ue =$("#text").val();

        if(ue){
            $('form').submit();

        }else{
            layer.alert('内容不能为空');
        }
    })



</script>
</body>
</html>